package demo2;

class func implements ITest {
    public void testDefault() {
        System.out.println("重写testDefault()");
    }
    public void testStatic() {
        System.out.println("testStatic()");
    }
}

public class Test {

    public static void main(String[] args) {
        ITest.testStatic();
        ITest iTest = new func();
        iTest.testDefault();
       // iTest.testStatic();
    }
}








